import router from "@system.router";

export default {
    data: {
        title: "World",
        content: [
            {
                imgSrc: "common/home/u339.png",
                position: "大厅",
                num: 6,
                temperature: 30,
                humidity: 49,
                luminance: 50,
            },
        ],
        hall_data: [
            {
                uri: "pages/particular/particular",
                imageSrc: "common/home/b_temperature.png",
                related_data: [
                    {
                        name: "温度:",
                        rd: "30℃",
                        co: "#9A9A9A",
                    },
                    {
                        name: "湿度:",
                        rd: "49%",
                        co: "#9A9A9A",
                    },
                ],
                name: "空气净化器",
            },
            {
                uri: "pages/particular/particular",
                imageSrc: "common/home/b_luminance.png",
                related_data: [
                    {
                        name: "状态:",
                        rd: "开启",
                        co: "#059B37",
                    },
                    {
                        name: "亮度:",
                        rd: "粉红",
                        co: "#9A9A9A",
                    },
                    {
                        name: "",
                        rd: "80%",
                        co: "#9A9A9A",
                    },
                ],
                name: "智能LED灯",
            },
            {
                uri: "pages/particular/particular",
                imageSrc: "common/home/b_camera.png",
                related_data: [
                    {
                        name: "状态:",
                        rd: "关闭",
                        co: "#FF6600",
                    },
                    {
                        name: "功能:",
                        rd: "运动追踪",
                        co: "#9A9A9A",
                    },
                ],
                name: "智能摄像机",
            },
            {
                uri: "pages/particular/particular",
                imageSrc: "common/home/b_camera.png",
                related_data: [
                    {
                        name: "状态:",
                        rd: "开启",
                        co: "#059B37",
                    },
                    {
                        name: "功能:",
                        rd: "运动追踪",
                        co: "#9A9A9A",
                    },
                ],
                name: "智能摄像机",
            },
            {
                uri: "pages/particular/particular",
                imageSrc: "common/home/b_router.png",
                related_data: [
                    {
                        name: "状态:",
                        rd: "开启",
                        co: "#059B37",
                    },
                    {
                        name: "连接:",
                        rd: "2个设备",
                        co: "#9A9A9A",
                    },
                ],
                name: "路由器",
            },
            {
                uri: "pages/particular/particular",
                imageSrc: "common/home/b_wifi.png",
                related_data: [
                    {
                        name: "状态:",
                        rd: "开启",
                        co: "#059B37",
                    },
                    {
                        name: "连接:",
                        rd: "2个设备",
                        co: "#9A9A9A",
                    },
                ],
                name: "WiFi放大器",
            },
        ],
    },

    bottomNavigationBarClick(num) {
        this.defaultIndex = num;
    },

    cut() {
        router.push({
            uri: "pages/add_device/add_device",
        });
    },

    cut_to_device() {
        router.push({
            uri: "",
        });
    },

    back() {
        router.back();
    },

    cut_to_particulars(surl) {
        router.push({
            //            uri: "pages/particular/particular",
            uri: surl,
        });
    },
};
